﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using ProtoBuf;

namespace Network
{
    [Serializable]
    [ProtoContract]
    public class ClientPacket : Packet
    {
        /// <summary>
        /// Id игрока
        /// </summary>
        [ProtoMember(1)]
        public sbyte PlayerId;
        [ProtoMember(2)]
        private ProtoPoint direction;
        /// <summary>
        /// Направление движения игрока
        /// </summary>
        public Vector2 Direction
        {
            get { return new Vector2(direction.X, direction.Y); }
            set { direction = new ProtoPoint(value.X, value.Y); }
        }
    }
}
